// 功能: 退出当前用户(logout)
void logout()
{
char choice;
printf("Do you want to exit this user(y/n)?");
scanf("%c", &choice);
gets(temp);
if((choice == 'y') || (choice == 'Y'))
{
printf("\nCurrent user exited!\nPlease to login by other user!\n");
login();
}
return ;
}
//检查当前I节点的文件是否属于当前用户
int check(int i)
{
int j;
char *uuser,*fuser;
uuser=user.user_name;
fuser=inode_array[i].user_name;
  j=strcmp(fuser,uuser);
  if(j==0)  return 1;
else      return 0;
}